<thead>
<tr>
    <th>商品名称</th>
    <th data-order-field="color_id">颜色</th>
    <th data-order-field="spec_id">规格</th>
    <th data-order-field="bar_code">条码</th>
    <th>数量</th>
    <th>零售价</th>
    <th>操作</th>
</tr>
</thead>
<tbody>
<?php foreach($list as $arr):?>
<tr>
    <td>{$arr.goods_name}</td>
    <td>{$arr.color_name}</td>
    <td>{$arr.spec_name}</td>
    <td>{$arr.bar_code}</td>
    <td>
        <input type="text" data-step="1" data-max="{$arr['number']-$arr['presell_number']}" data-min="1"
               data-toggle="spinner" size="5" value="0">
        <!--<code style="color:blue;">{$arr.number}</code>|<code>{$arr.presell_number}</code>-->
        <code style="color:blue;"><?php echo $arr['number']-$arr['presell_number'];?></code>
    </td>
    <td><input type="text" name="retail_price" size="5" value=""></td>
    <td>
        <!-- <a href="javascript:;" data-toggle="lookupback" data-args='<?php echo json_encode(array($_REQUEST['inputName'].'[goods_id]'=>$arr['goods_id'],$_REQUEST['inputName'].'[bar_code]'=>$arr['bar_code'],));?>' class="btn btn-blue" title="选择本项" data-icon="check">选择</a> -->
        <a class="btn btn-blue" title="选择本项" data-icon="check" onclick="javascript:chooseBarCode(this, {:I('request.orderGoodsId', 0)});">选择</a>
    </td>
    <input type="hidden" name="barCodeId" value="{$arr.id}">
    <input type="hidden" name="goodsId" value="{$arr.goods_id}">
</tr>
<?php endforeach;?>
</tbody>